﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Net5ApiAndEfMySql.DtoModel;
using Net5ApiAndEfMySql.DtoModel.SystemAdmin;
using Net5ApiAndEfMySql.PoModel.SystemAdmin;
using VueAndNetCoreEfApi.PoModel.SystemAdmin;

namespace Net5ApiAndEfMySql.IRepository.SystemAdmin
{
    public interface IOperatorRepository
    {
        OperatorPo GetAdminUserByUserName(string userName);
        OperatorDto GetAdminUserDtoByUserName(string userName);

        //操作员显示
        public PagerResult<OperatorDto> GetPageList(SearchModel m);
        //操作员添加
        public bool AddOperator(OperatorDto obj);
        //操作员修改
        public bool UptOperator(OperatorDto obj);
        //操作员状态修改
        public bool UptStateByCard(string card);
        //操作员删除
        public bool DelOperator(string card);
        //操作员批量删除
        public bool DelOperatorList(string keys);
        //操作员获取
        public OperatorPo GetOperatorByCard(string card);
        public OperatorPo GetOperatorByAccount(string account);


        //获取角色
        public List<RoleDbPo> GetRoles();
        //获取员工
        public List<EmployeePo> GetEmployees();
    }
}
